package com.itheima.day16.work;

public class Student {
    private String  name;
    private int  age;
    private String adress;
    private static int money=500;

    public Student(String name, int age, String adress) {
        this.name = name;
        this.age = age;
        this.adress = adress;
    }
/*    private Student(String name) {
        this.name = name;
        System.out.println("私有构造方法");
    }*/
    public Student() {
    }

    public  void run(){
        System.out.println("方法执行了");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    @Override
    public String toString() {
        return "Student{" + "name='" + name + '\'' + ", age=" + age + ", adress='" + adress + '\'' + '}';
    }
}
